package com.suyang.syt.model;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/** 树行基本实体 */
@MappedSuperclass
@SuppressWarnings("serial")
public class BaseTreeEntity extends BaseEntity {
	/** 名称 */
	private String text;
	/** 编码 */
	private String code;
	/** 实体名称 */
	private String identity;
	/** 层次 */
	private int layer;
	/** 是否叶子 */
	private String leaf;
	/** 导航节点状态, 'open' 或者 'closed' */
	private String state;
	/** 指明检查节点是否选中 */
	private boolean checked;
	/** 图标样式 */
	private String iconCls;
	/** 系统导航栏扩展属性 url */
	private String url;
	/** 父节点ID */
	private long pid;
	/** 父节点文本 */
	private String ptext;

	@Column(length = 4000)
	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public int getLayer() {
		return layer;
	}

	public void setLayer(int layer) {
		this.layer = layer;
	}

	public String getLeaf() {
		return leaf;
	}

	public void setLeaf(String leaf) {
		this.leaf = leaf;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public String getIconCls() {
		return iconCls;
	}

	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public long getPid() {
		return pid;
	}

	public void setPid(long pid) {
		this.pid = pid;
	}

	public String getPtext() {
		return ptext;
	}

	public void setPtext(String ptext) {
		this.ptext = ptext;
	}

	public String getIdentity() {
		return identity;
	}

	public void setIdentity(String identity) {
		this.identity = identity;
	}

}